<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddVotesToGoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('goods', function (Blueprint $table) {
            //
            $table->tinyInteger('states')->default(0)->comment('审核状态0未审核,1审核中,2审核失败,3审核成功');
			$table->tinyInteger('state')->default(0)->comment('删除状态1正常,0删除');
            $table->string('opinion',250)->default('')->comment('审核失败原因');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('goods', function (Blueprint $table) {
            //
        });
    }
}
